<template>
	<view>
		<view class="smart-container">登录页与注册页</view>
		<view @click="goDetailPage(('login'))">
			<text space="emsp">&nbsp;&emsp;登录页</text>
		</view>
		<view class="smart-container">城市探索</view>
		<view @click="goDetailPage2(('CityDiscovery'))">
			<text space="emsp">&nbsp;&emsp;城市探索</text>
		</view>
		<view class="smart-container">自定义组件</view>
		<view @click="goDetailPage2(('CardViewPage'))">
			<text space="emsp">&nbsp;&emsp;自定义组件</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e) {
			    if (typeof e === 'string') {
			        uni.navigateTo({
						url: '/pages/' + e + '/' + e
			            });
			    } else {
			        uni.navigateTo({
			            url: e.url
			        });
			    }
			},
			goDetailPage2(e) {
			    if (typeof e === 'string') {
			        uni.navigateTo({
						url: '/pages/tabBar/case/' + e + '/' + e
			            });
			    } else {
			        uni.navigateTo({
			            url: e.url
			        });
			    }
			}
		}
	}
</script>

<style>

</style>
